package cn.le.aopAnnotationDataSource.mode;

import cn.le.aopAnnotationDataSource.annotation.IsEmpty;
import cn.le.aopAnnotationDataSource.annotation.MinSize;
import cn.le.aopAnnotationDataSource.annotation.Size;

/**
 * Created by admin on 2017/3/27.
 * 注解验证模型类
 */
public class AntModel {

    @Size(min = 5, max = 15, message = "长度异常")
    private int    age;
    @IsEmpty
    private String name;
    @MinSize(min = 2)
    private int height;

    private AntModel() {

    }

    public AntModel(int age, String name, int height) {
        this.age = age;
        this.name = name;
        this.height = height;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getAge() {
        return age;
    }

    public String getName() {
        return name;
    }

    public int getHeight() {
        return height;
    }




}
